<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ChatLog - 强大的聊天记录工具</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .code-block {
            background-color: #2d2d2d;
            color: #f8f8f2;
            border-radius: 0.5rem;
            position: relative;
        }
        .code-block::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2rem;
            background-color: rgba(255, 255, 255, 0.1);
            border-top-left-radius: 0.5rem;
            border-top-right-radius: 0.5rem;
        }
        .code-block::after {
            content: "● ● ●";
            position: absolute;
            top: 0.5rem;
            left: 1rem;
            color: #ff5f56;
            font-size: 0.8rem;
            letter-spacing: 0.2rem;
        }
        .api-endpoint {
            background-color: #f3f4f6;
            border-left: 4px solid #6e8efb;
        }
        .note-box {
            border-left: 4px solid #f59e0b;
            background-color: #fffbeb;
        }
        .warning-box {
            border-left: 4px solid #ef4444;
            background-color: #fef2f2;
        }
        .success-box {
            border-left: 4px solid #10b981;
            background-color: #ecfdf5;
        }
        .first-letter-drop::first-letter {
            float: left;
            font-size: 3.5rem;
            line-height: 2.5rem;
            padding-top: 0.5rem;
            padding-right: 0.5rem;
            font-weight: bold;
            color: #6e8efb;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 md:px-0">
        <div class="container mx-auto max-w-6xl px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">ChatLog</h1>
                    <p class="text-xl md:text-2xl mb-8 opacity-90">强大的聊天记录工具，轻松使用您的微信聊天数据</p>
                    <div class="flex flex-col sm:flex-row gap-4">
                        <a href="#features" class="bg-white text-indigo-600 hover:bg-gray-100 px-6 py-3 rounded-lg font-semibold text-center transition duration-300">
                            <i class="fas fa-star mr-2"></i>功能特色
                        </a>
                        <a href="https://github.com/sjzar/chatlog" target="_blank" class="bg-indigo-800 hover:bg-indigo-900 px-6 py-3 rounded-lg font-semibold text-center transition duration-300">
                            <i class="fab fa-github mr-2"></i>GitHub 仓库
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <div class="bg-white p-2 rounded-xl shadow-2xl transform rotate-3 hover:rotate-0 transition duration-500">
                        <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1745990784843-f24a0f27-0f67-415e-8d3d-609769ed209a.png" alt="ChatLog 界面" class="rounded-lg w-full max-w-md">
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="py-16 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4">主要功能</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">ChatLog 提供全面的微信聊天记录管理解决方案，满足您的各种需求</p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-database text-indigo-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">本地数据库访问</h3>
                    <p class="text-gray-600">直接从本地数据库文件获取微信聊天数据，保护您的隐私安全</p>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-laptop-code text-blue-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">多平台支持</h3>
                    <p class="text-gray-600">支持 Windows 和 macOS 系统，兼容微信 3.x 和 4.0 版本</p>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-terminal text-purple-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">终端与API接口</h3>
                    <p class="text-gray-600">提供终端界面和HTTP API服务，支持灵活查询各种聊天信息</p>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-robot text-green-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">AI 助手集成</h3>
                    <p class="text-gray-600">支持 MCP SSE 协议，可与支持 MCP 的 AI 助手无缝集成</p>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="w-12 h-12 bg-yellow-100 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-images text-yellow-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">多媒体支持</h3>
                    <p class="text-gray-600">支持图片、语音等多媒体消息的解密和访问</p>
                </div>
                
                <div class="feature-card bg-white p-8 rounded-xl shadow-md transition duration-300">
                    <div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-users text-red-600 text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">多账号管理</h3>
                    <p class="text-gray-600">支持多账号切换管理，方便管理不同微信账号的聊天记录</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Installation Section -->
    <section class="py-16 bg-gray-100 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4">安装与配置</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">简单几步即可开始使用 ChatLog 的强大功能</p>
            </div>
            
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-2xl font-semibold mb-6">安装方法</h3>
                    
                    <div class="mb-8">
                        <h4 class="text-lg font-semibold mb-4 flex items-center">
                            <span class="w-6 h-6 bg-indigo-600 text-white rounded-full flex items-center justify-center mr-3">1</span>
                            预编译版本下载
                        </h4>
                        <p class="mb-4">访问 GitHub Releases 页面，下载适合您系统的预编译版本。</p>
                        <a href="https://github.com/sjzar/chatlog/releases" target="_blank" class="inline-flex items-center text-indigo-600 hover:text-indigo-800 font-medium">
                            <i class="fab fa-github mr-2"></i> 前往下载页面
                        </a>
                    </div>
                    
                    <div>
                        <h4 class="text-lg font-semibold mb-4 flex items-center">
                            <span class="w-6 h-6 bg-indigo-600 text-white rounded-full flex items-center justify-center mr-3">2</span>
                            源码安装方式
                        </h4>
                        <p class="mb-4">如果您已安装 Go 环境，可以直接使用以下命令安装：</p>
                        <div class="code-block p-6 mb-4">
                            <pre class="overflow-x-auto"><code class="language-bash">go install github.com/sjzar/chatlog@latest</code></pre>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6">基本使用教程</h3>
                    
                    <div class="bg-white p-6 rounded-xl shadow-md mb-6">
                        <h4 class="text-lg font-semibold mb-4">启动程序</h4>
                        <div class="code-block p-6 mb-4">
                            <pre class="overflow-x-auto"><code class="language-bash">chatlog</code></pre>
                        </div>
                    </div>
                    
                    <div class="bg-white p-6 rounded-xl shadow-md">
                        <h4 class="text-lg font-semibold mb-4">界面操作说明</h4>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-arrow-up text-indigo-600 mt-1 mr-2"></i>
                                <span><span class="font-medium">↑↓ 键</span> 选择菜单项</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-keyboard text-indigo-600 mt-1 mr-2"></i>
                                <span><span class="font-medium">Enter 键</span> 确认选择</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-undo text-indigo-600 mt-1 mr-2"></i>
                                <span><span class="font-medium">Esc 键</span> 返回上级菜单</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-sign-out-alt text-indigo-600 mt-1 mr-2"></i>
                                <span><span class="font-medium">Ctrl+C</span> 退出程序</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Platform Specific Section -->
    <section class="py-16 px-4">
        <div class="container mx-auto max-w-6xl">
            <h2 class="text-3xl font-bold mb-12 text-center">平台特定配置</h2>
            
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                <div>
                    <div class="bg-white p-8 rounded-xl shadow-md">
                        <div class="flex items-center mb-6">
                            <i class="fab fa-windows text-blue-600 text-3xl mr-4"></i>
                            <h3 class="text-2xl font-semibold">Windows 系统</h3>
                        </div>
                        <div class="note-box p-4 mb-6">
                            <p>如果遇到界面显示异常（如花屏、乱码等），请使用 Windows Terminal 运行程序。</p>
                        </div>
                    </div>
                </div>
                
                <div>
                    <div class="bg-white p-8 rounded-xl shadow-md">
                        <div class="flex items-center mb-6">
                            <i class="fab fa-apple text-gray-900 text-3xl mr-4"></i>
                            <h3 class="text-2xl font-semibold">macOS 系统</h3>
                        </div>
                        <p class="mb-4">macOS 用户在获取密钥前需要临时关闭 SIP（系统完整性保护）：</p>
                        
                        <div class="mb-6">
                            <h4 class="font-semibold mb-2">SIP 关闭方法</h4>
                            <div class="code-block p-6">
                                <pre class="overflow-x-auto"><code class="language-bash"># 进入恢复模式
# Intel Mac: 重启时按住 Command + R
# Apple Silicon: 重启时长按电源键
# 在恢复模式中打开终端并执行
csrutil disable
# 重启系统</code></pre>
                            </div>
                        </div>
                        
                        <div class="note-box p-4">
                            <p><strong>注意：</strong>Apple Silicon 用户确保微信、chatlog 和终端都不在 Rosetta 模式下运行</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- API Section -->
    <section class="py-16 bg-indigo-50 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4">功能与接口</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">通过强大的API接口，灵活访问和管理您的聊天数据</p>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-12">
                <div class="p-8">
                    <h3 class="text-2xl font-semibold mb-6">HTTP API 使用</h3>
                    <p class="mb-6">启动 HTTP 服务后（默认地址 <code class="bg-gray-100 px-2 py-1 rounded">http://127.0.0.1:5030</code>），可通过以下 API 访问数据：</p>
                    
                    <div class="mb-8">
                        <h4 class="text-xl font-semibold mb-4">聊天记录查询接口</h4>
                        <div class="api-endpoint p-4 mb-4 rounded">
                            <code class="font-mono">GET /api/v1/chatlog?time=2023-01-01&talker=wxid_xxx</code>
                        </div>
                        <h5 class="font-semibold mb-2">参数说明：</h5>
                        <ul class="grid grid-cols-1 md:grid-cols-2 gap-3">
                            <li><code class="bg-gray-100 px-2 py-1 rounded">time</code>: 时间范围，格式为 YYYY-MM-DD 或 YYYY-MM-DD~YYYY-MM-DD</li>
                            <li><code class="bg-gray-100 px-2 py-1 rounded">talker</code>: 聊天对象标识</li>
                            <li><code class="bg-gray-100 px-2 py-1 rounded">limit</code>: 返回记录数量</li>
                            <li><code class="bg-gray-100 px-2 py-1 rounded">offset</code>: 分页偏移量</li>
                            <li><code class="bg-gray-100 px-2 py-1 rounded">format</code>: 输出格式，支持 json、csv 或纯文本</li>
                        </ul>
                    </div>
                    
                    <div class="mb-8">
                        <h4 class="text-xl font-semibold mb-4">联系人与群聊接口</h4>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /api/v1/contact</code>
                                <p class="mt-2 text-sm text-gray-600">获取联系人列表</p>
                            </div>
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /api/v1/chatroom</code>
                                <p class="mt-2 text-sm text-gray-600">获取群聊列表</p>
                            </div>
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /api/v1/session</code>
                                <p class="mt-2 text-sm text-gray-600">获取会话列表</p>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="text-xl font-semibold mb-4">多媒体内容访问方法</h4>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /image/&lt;id&gt;</code>
                                <p class="mt-2 text-sm text-gray-600">访问图片内容</p>
                            </div>
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /video/&lt;id&gt;</code>
                                <p class="mt-2 text-sm text-gray-600">访问视频内容</p>
                            </div>
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /file/&lt;id&gt;</code>
                                <p class="mt-2 text-sm text-gray-600">访问文件内容</p>
                            </div>
                            <div class="api-endpoint p-4 rounded">
                                <code class="font-mono">GET /voice/&lt;id&gt;</code>
                                <p class="mt-2 text-sm text-gray-600">访问语音内容</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-8">
                    <h3 class="text-2xl font-semibold mb-6">AI 助手集成</h3>
                    <div class="first-letter-drop mb-6">
                        <p>ChatLog 支持 MCP (Model Context Protocol) SSE 协议，可与支持 MCP 的 AI 助手无缝集成。启动 HTTP 服务后，通过 SSE Endpoint 访问服务：</p>
                    </div>
                    <div class="code-block p-6 mb-6">
                        <pre class="overflow-x-auto"><code class="language-bash">GET /sse</code></pre>
                    </div>
                    <div class="success-box p-4 rounded-lg">
                        <p><strong>提示：</strong>这一功能可以用于与各种AI助手集成，让AI能够读取并分析您的聊天记录。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Cherry Studio Integration -->
    <section class="py-16 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4">Cherry Studio 集成指南</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">通过与 Cherry Studio 集成，让 AI 助手读取并分析您的聊天记录</p>
            </div>
            
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-16">
                <div>
                    <h3 class="text-2xl font-semibold mb-6">集成准备工作</h3>
                    <ol class="space-y-4">
                        <li class="flex items-start">
                            <span class="bg-indigo-600 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">1</span>
                            <span>安装并正确配置 ChatLog</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-indigo-600 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">2</span>
                            <span>已完成数据解密操作</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-indigo-600 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">3</span>
                            <span>成功启动 ChatLog 的 HTTP 服务</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-indigo-600 text-white rounded-full w-6 h-6 flex items-center justify-center mr-3 mt-1 flex-shrink-0">4</span>
                            <span>安装 Cherry Studio 客户端</span>
                        </li>
                    </ol>
                    <a href="https://www.yuque.com/jtostring/qiwsg9/elgcd3m7kcgqw4gp" target="_blank" class="inline-flex items-center mt-6 bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-3 rounded-lg font-medium transition duration-300">
                        <i class="fas fa-download mr-2"></i> 下载 Cherry Studio
                    </a>
                </div>
                
                <div class="bg-white p-4 rounded-xl shadow-md">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1745992001395-bd9ffe0c-5fac-477b-9c8f-2c082912ab03.png" alt="Cherry Studio 界面" class="rounded-lg w-full">
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-12">
                <div class="p-8">
                    <h3 class="text-2xl font-semibold mb-6">MCP 服务器配置方法</h3>
                    <ol class="space-y-6">
                        <li>
                            <p class="mb-2">打开 Cherry Studio 应用程序</p>
                        </li>
                        <li>
                            <p class="mb-2">进入"设置 - MCP 服务器"选项</p>
                        </li>
                        <li>
                            <p class="mb-2">点击"添加服务器"按钮</p>
                        </li>
                        <li>
                            <p class="mb-2">填写服务器信息：</p>
                            <ul class="ml-6 space-y-2">
                                <li><span class="font-medium">名称：</span><code class="bg-gray-100 px-2 py-1 rounded">chatlog</code>（可自定义）</li>
                                <li><span class="font-medium">类型：</span>选择"服务器发送事件(SSE)"</li>
                                <li><span class="font-medium">URL：</span>填写 <code class="bg-gray-100 px-2 py-1 rounded">http://127.0.0.1:5030/sse</code></li>
                            </ul>
                        </li>
                        <li>
                            <p class="mb-2">点击"保存"按钮</p>
                        </li>
                    </ol>
                    <div class="warning-box p-4 mt-6 rounded-lg">
                        <p><strong>重要提示：</strong>保存前不要先点击左侧的开启按钮，先保存后再开启服务</p>
                    </div>
                </div>
            </div>
            
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-2xl font-semibold mb-6">实用提示</h3>
                    
                    <div class="bg-white p-6 rounded-xl shadow-md mb-8">
                        <h4 class="text-xl font-semibold mb-4">聊天分析提示语示例</h4>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-comment-dots text-indigo-600 mt-1 mr-2"></i>
                                <span>"帮我总结最近一周与张三的聊天内容"</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-comment-dots text-indigo-600 mt-1 mr-2"></i>
                                <span>"查找我在某个群聊中关于项目进度的讨论"</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-comment-dots text-indigo-600 mt-1 mr-2"></i>
                                <span>"分析我与某位联系人的聊天风格和频率"</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-comment-dots text-indigo-600 mt-1 mr-2"></i>
                                <span>"找出我与某人最近讨论的重要事项"</span>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6">故障排除</h3>
                    
                    <div class="bg-white p-6 rounded-xl shadow-md">
                        <h4 class="text-xl font-semibold mb-4">常见问题检查</h4>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>ChatLog HTTP 服务是否正常运行（访问 <code class="bg-gray-100 px-1">http://127.0.0.1:5030</code> 确认）</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>Cherry Studio 中的 URL 是否正确填写为 <code class="bg-gray-100 px-1">http://127.0.0.1:5030/sse</code></span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>是否选择了支持 MCP 的 AI 模型</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>ChatLog 的数据解密是否成功完成</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="text-center">
                <h3 class="text-xl font-semibold mb-4">技术小馆</h3>
                <p class="mb-6">探索技术的无限可能</p>
                <a href="http://www.yuque.com/jtostring" target="_blank" class="text-indigo-400 hover:text-indigo-300 transition duration-300">
                    <i class="fas fa-globe mr-2"></i> http://www.yuque.com/jtostring
                </a>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400 text-sm">
                <p>© 2023 ChatLog. 保留所有权利。</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>